package com.ssfGame.puremvc.controller.cell
{
	import com.game.utils.GlobalFun;
	import com.ssfGame.puremvc.StaticConst;
	import com.ssfGame.puremvc.view.application.SceneLayerMediator;
	import com.ssfGame.puremvc.view.module.logoMovie.vc.LogoMovie;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class ShowLogoMovieCommand extends SimpleCommand
	{
		private var _logoMovie:LogoMovie;
		public function ShowLogoMovieCommand()
		{
			super();
		}
		override public function execute(notification:INotification):void{
			
			init()
		}
		private function init():void{
			_logoMovie=new LogoMovie();
			GlobalFun.setDisCenter(_logoMovie,StaticConst.appStage);
			sendNotification(StaticConst.N_M_SCENE_LAYER_ADD,_logoMovie);
			_logoMovie.addFrameScript(43,playOver);
			
		}
		private function playOver():void{
			_logoMovie.stop();
			sendNotification(StaticConst.N_M_SCENE_LAYER_DEL,_logoMovie);
			sendNotification(StaticConst.N_M_SCENE_LAYER_DEL,null,SceneLayerMediator.DEL_ALL);
			sendNotification(StaticConst.N_C_INIT_GAME_STAGE);
		}
	}
}